<template>
  <div id="app">
    <div id="nav">
      <router-link to="/">首页</router-link>
      <router-link to="/chashan">茶山校区</router-link>
      <router-link to="/yueqing">乐清校区</router-link>
      <router-link to="/about">关于</router-link>
      <router-link to="/student">个人信息</router-link>
      <router-link to="/system">学生系统</router-link>
    </div>
    <router-view/>
  </div>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 15px 30px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
  margin: 0 15px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

#nav a:hover {
  background-color: rgba(66, 185, 131, 0.1);
}

#nav a.router-link-exact-active {
  color: #42b983;
  background-color: rgba(66, 185, 131, 0.2);
}
</style>
